package com.element.security.single.annotation;

import com.element.security.single.SpringSecurityConfig;
import com.element.security.single.filter.TokenAuthenticationFilter;
import com.element.security.single.handler.LoginSuccessHandler;
import com.element.security.single.token.RedisTokenStore;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Inherited
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({
        SpringSecurityConfig.class,
        LoginSuccessHandler.class,
        TokenAuthenticationFilter.class,
        RedisTokenStore.class})
public @interface EnableGlobalSecurity {

    String[] exclude() default {};
}